import 'package:tin_flutter/generated/json/base/json_field.dart';
import 'package:tin_flutter/generated/json/login_request_entity.g.dart';
import 'dart:convert';
export 'package:tin_flutter/generated/json/login_request_entity.g.dart';

@JsonSerializable()
class LoginRequestEntity {
	late String username = '';
	late String password = '';
	late String code = '';
	late int type = 1;

	LoginRequestEntity();

	factory LoginRequestEntity.fromJson(Map<String, dynamic> json) => $LoginRequestEntityFromJson(json);

	Map<String, dynamic> toJson() => $LoginRequestEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}